/*module.exports=[
	{
		name:"管理系统页面",
		icon:"el-icon-s-check",
		id:"player",
		submenu:[
			{
				name:"玩家信息查询",
				to:"/playinformation"
			},
			{
				name:"新手引导",
				to:"/newguide"
			}
		]
	},
	{
		name:"角色管理",
		icon:"el-icon-s-custom",
		id:"role",
		submenu:[
			{
				name:"角色阵容练度",
				to:"/rolezr"
			},
			{
				name:"玩家充值查询",
				to:"/recharge"
			},
			{
				name:"挂机关卡",
				to:"/hangup"
			}
		]
	},
	{
		name:"付费与货币",
		icon:"el-icon-coin",
		id:"fellhb",
		submenu:[
			{
				name:"档位充值",
				to:"/dwrecharge"
			},
			{
				name:"种族抽查询",
				to:"/racedrawtimes"
			}
		]
	},
	{
		name:"留存率",
		id:"liucunlv",
		icon:"el-icon-user",
		submenu:[
			{
				name:"留存率查询",
				to:"/retention"
			},
		]
	},
	{
		name:"激活码",
		id:"jihuoma",
		icon:"el-icon-pie-chart",
		submenu:[
			{
				name:"激活码查询",
				to:"/activationcode"
			},
		]
	},
   {
		name:"物品流水",
		id:"wupin",
		icon:"el-icon-present",
		submenu:[
			{
				name:"角色物品流水",
				to:"/rolegift"
			},
		]
	},
	  {
			name:"公告/跑马灯",
			id:"ggpmd",
			icon:"el-icon-magic-stick",
			submenu:[
				{
					name:"公告",
					to:"/notice"
				},
				{
					name:"跑马灯",
					to:"/pmd"
				},
			]
		},
		{
			name:"邮件管理",
			id:"mail",
			icon:"el-icon-message",
			submenu:[
				{
					name:"邮件查询",
					to:"/mail"
				},
			]
		},
		{
			name:"封禁",
			id:"fengjin",
			icon:"el-icon-key",
			submenu:[
				{
					name:"封禁查询",
					to:"/ban"
				},
			]
		},
]*/


let res = [
		{
			icon: 'el-icon-eleme',
			name: ' 管理系统页面',
			id:"home",
			submenu: [
				{
					name: ' 管理系统页面',
					to: '/home'
				}
			]
		},
		{
			icon: 'el-icon-user',
			name: ' 用户信息管理',
			id:"user",
			submenu: [
				{
					name: ' 普通用户管理',
					to: '/user/normal'
				},{
					name: ' 教师信息管理',
					to: '/user/teacher',
				}
			]

		},
		{
			icon: 'el-icon-help',
			name: ' 订单查询',
			id:"order",
			submenu: [
				{
					name: ' 订单查询',
					to: '/order/query'
				}
			]

		},
		{
			icon: 'el-icon-message-solid',
			name: ' 分类信息管理',
			id:"category",
			submenu: [
				{
					name: ' 分类信息管理',
					to: '/category'
				}
			]

		},
		{
			icon: 'el-icon-message-solid',
			name: ' 课程发布审批',
			id:"course",
			submenu: [
				{
					name: ' 课程发布审批',
					to: '/course/issue'
				}
			]

		},
		{
			icon: 'el-icon-info',
			name: ' 个人中心管理',
			id:"info",
			submenu: [
				{
					name: ' 个人中心管理',
					to: '/info'
				},
				{
					name: ' 注销登录账户',
					to: '/logout'
				}
			]

		}
	];


//教师
let resSeller = [
		{
			id: "1",
			icon: 'el-icon-eleme',
			name: ' 管理系统页面',
			submenu: [
				{
					name: ' 管理系统页面',
					to: '/home'
				}
			]
		},
		{
			id: "2",
			icon: 'el-icon-help',
			name: ' 课程浏览发布',
			submenu: [
				{
					name: ' 课程浏览',
					to: '/course/issue'
				},
				{
					name: ' 课程考试',
					to: '/course/examine'
				}
			]

		},
		{
			id: "5",
			icon: 'el-icon-info',
			name: ' 个人中心管理',
			submenu: [
				{
					name: ' 个人中心管理',
					to: '/info'
				},
				{
					name: ' 注销登录账户',
					to: '/logout'
				}
			]

		}
	];

//买家
let resBuyer = [
		{
			id: "1",
			icon: 'el-icon-eleme',
			name: ' 管理系统页面',
			submenu: [
				{
					name: ' 管理系统页面',
					to: '/home'
				}
			]
		},
		{
			id: "2",
			icon: 'el-icon-help',
			name: ' 课程管理',
			submenu: [
				{
					name: ' 课程管理',
					to: '/buyerCar'
				}
			]

		},
		{
			id: "3",
			icon: 'el-icon-help',
			name: ' 订单信息管理',
			submenu: [
				{
					name: ' 订单信息管理',
					to: '/order/query'
				}
			]

		},
		{
			id: "5",
			icon: 'el-icon-info',
			name: ' 个人中心管理',
			submenu: [
				{
					name: ' 个人中心管理',
					to: '/info'
				},
				{
					name: ' 注销登录账户',
					to: '/logout'
				}
			]

		}
	]



let loginUser = JSON.parse(localStorage.getItem('loginUser'));
if(loginUser.role == 1){
	//管理員
	module.exports=res;
}else if(loginUser.role == 2){
	//卖家
	module.exports=resSeller;
}else if(loginUser.role == 3){
	//买家
	module.exports=resBuyer;
}else{

}
